//illustrates the use of a while loop

import java.io.*;
import java.lang.*;

public class ExWhile
{   

public static void main(String args[]) 
   {
	int num = 1;
	while(num <=5){
	System.out.print(num+" ");
	num++;}
  } //end main
} //end exwhile 


